package com.shop.cloud.upms.common.feign;

import com.shop.cloud.common.core.constant.SecurityConstants;
import com.shop.cloud.common.core.constant.ServiceNameConstants;
import com.shop.cloud.common.core.util.R;
import com.shop.cloud.upms.common.entity.TableArea;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author
 */
@FeignClient(contextId = "feignTableAreaService", value = ServiceNameConstants.UMPS_ADMIN_SERVICE)
public interface FeignTableAreaService {

	/**
	 * 地区表分页List（服务间调用）
	 *
	 * @param tableArea
	 * @return R
	 */
	@PostMapping("/tablearea/inside/list")
	R<List<TableArea>> getList(@RequestBody TableArea tableArea, @RequestHeader(SecurityConstants.FROM) String from);


}
